<% /* $Id: profile.jsp 82 2010-10-20 08:32:13Z altdotua@gmail.com $ */ %>

<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@include file="header.jsp"%>

<%
	UserEntry entry = user;
	ContestUserEntry contestEntry = ContestUsersModel.getOrCreateEntry(contest.getId(), user.getId());
%>


<h2 align="center"><%= "Профіль користувача " + entry.getUsername() %></h2>

<form action="<%= Linker.link("users") %>" method="post">
<input type="hidden" name="action" value="editContestProfile">
<input type="hidden" name="contestId" value="<%= contest.getId() %>">
<table align="center">
	<tr>
		<td>Ім'я:</td>
		<td><input name="name" value="<%= contestEntry.getName() %>"></td>
	</tr>
	<tr>
		<td>Старий пароль</td>
		<td><input name="oldPassword" type="password"></td>
	</tr>
	<tr>
		<td>Новий пароль</td>
		<td><input name="newPassword" type="password"></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><input type="submit" value="Submit"></td>
	</tr>
</table>
</form>


<%@include file="footer.jsp"%>